#include <stdio.h>
extern char **environ;
int main(int argc, char *args[])
{
    char **env = environ;
    int i;
    for (i = 0; i < argc; i++)
    {
        printf("args[%d] : %s\n", i, args[i]);
    }
    while (*env)
    {
        printf("%s\n", *env);
        env++;
    }
    return 0;
}